package utils

import (
	"io/ioutil"
	"strings"
)

func ReadDir(dirname string) []string {
	files, _ := ioutil.ReadDir(dirname)
	var fileNames []string
	for _, f := range files {
		// 忽略隐藏文件
		if !strings.HasPrefix(f.Name(), ".") {
			fileNames = append(fileNames, f.Name())
		}
	}
	return fileNames
}
